package Thread.KFC;

/**
 * @author: lqh
 * @description: 生产者
 * @program: Demo
 * @create: 2018-04-13 14:36
 **/
public class Produce extends Thread {

    Kfc kfc;

    public Produce(Kfc kfc) {
        this.kfc = kfc;
    }

    @Override
    public void run() {
        while (true) {
            kfc.produceFood();
        }
    }
}
